package com.jiujichaoshi.oauth.server.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Description:
 *
 * @author YangLong [410357434@163.com]
 * @version V1.0
 * @date 2021/2/4
 */
@Data
@Component
public class JwtProperties {
    /**
     * JWT加密KEY，rsa格式或HMAC
     */
    @Value("${jwt.rsa-key:13626878988}")
    private String rsaKey;
    /**
     * token过期时间，秒
     */
    @Value("${jwt.token-expire:86400}")
    private int tokenExpire;
    /**
     * refresh过期时间，秒
     */
    @Value("${jwt.refresh-token-expire:2592000}")
    private int refreshTokenExpire;
}
